package tests;
import main.Particles;


public class ParticlesTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Particles particles = new Particles();
		
		double[] position0 = {0,0};
		double[] position1 = {1,1};
		double[] position2 = {2,2};
		
		double[] velocity0 = {3,3};
		double[] velocity1 = {4,4};
		double[] velocity2 = {5,5};
		
		double mass0 = 1;
		double mass1 = 2;
		double mass2 = 3;

		double charge0 = 1;
		double charge1 = 2;
		double charge2 = 3;

		particles.setPosition(position0, 0);
		particles.setPosition(position1, 1);
		particles.setPosition(position2, 2);

		particles.setVelocity(velocity0, 0);
		particles.setVelocity(velocity1, 1);
		particles.setVelocity(velocity2, 2);

		particles.setMass(mass0, 0);
		particles.setMass(mass1, 1);
		particles.setMass(mass2, 2);
		
		particles.setCharge(charge0, 0);
		particles.setCharge(charge1, 1);
		particles.setCharge(charge2, 2);

		double[] velocityTest =  particles.getVelocity(2); 
		double x = velocityTest[0];
		
		double[] positionTest =  particles.getPosition(2); 
		double y = positionTest[1];
		
		System.out.println("velocity" + x);
		System.out.println("position" + y);

	}

}
